Preview Record Registry entry
Define a record to be used to preview the output of Standards module Term Definitions.
When defining a term on the Definition tab in the Standards module we associate the term with one or more EMu fields and define how the EMu data is formatted when it is output. Two formatting methods are available from the Format Specifier drop list (these are mutually exclusive):
- String - The formatting information specified in Term Format String will be used.
- Script - The formatting specified in a perl subroutine on the Script tab will be used.
With the Preview Record Registry entry a Preview button is enabled beside the Term Format String field and on the Script tab. The button can be used to preview a Term Definition as it is created to ensure the output matches what is expected.
The Preview Record Registry entry points to a record in the module from which data will be output for the standard (ecatalogue for instance).
When the Preview button is clicked, data from the specified record is retrieved and the formatting rules for the current Term Definition are applied and displayed in a pop-up window.
For example: to preview output for Term Definitions defined for the Dublin Core standard, a Preview Record Registry entry points to a Catalogue record (IRN = 2) with the following data:
The Term Definition for the Dublin Core term dc:modified has a Term Format String of %sT%s-10:00
and takes data from the AdmDateModified and AdmTimeModified fields. Selecting the Preview button will show the following output:
Usage
Key | User | Group | Group |
---|---|---|---|
Key 1 | User
|
Group
|
Group
|
Key 2 | user | group | Default
|
Key 3 | Table
|
||
Key 4 | estandards
|
||
Key 5 | Preview Record
|
||
Key 6 | Standard name | ||
Value | irn |
User
|
user | Table
|
estandards
|
Preview Record
|
Standard name | irn |
Group
|
group | Table
|
estandards
|
Preview Record
|
Standard name | irn |
Group
|
Default
|
Table
|
|
Preview Record
|
Standard name |
irn |
where:
Standard name | is the name of the standard for which the preview record is being set. Must match the name specified in Name: (Standard Name) when defining a term in the Standards module. |
irn |
is the irn of a record to be used to preview the output of Term Definitions. The module holding the preview record must match the module named in Module: (Standard Name) when defining a Term Definition, the Catalogue module in this example:
Only one record can be defined for each standard (Dublin Core in this example) but it can be changed at any time to test different values for definitions if required. |
Example
The following Registry entry sets the Catalogue record with IRN 13692 as the preview record irn for group Icthyology when testing the output of term definitions for the Darwin Core standard:
Key | Setting |
---|---|
Key 1 | Group |
Key 2 | Icthyology |
Key 3 | Table |
Key 4 | estandards |
Key 5 | Preview Record |
Key 6 | Darwin Core |
Value | 13692 |